package com.service;

import com.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {

    boolean add(Book book);

    boolean delete(int id);

    boolean update(Book book);

    Book getById(int id);


    List<Book> getAll();

}
